package com.bdqn.service;

import com.bdqn.common.Page;
import com.bdqn.mapper.AppInfoMapper;
import com.bdqn.pojo.AppInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 手游信息业务实现
 *
 * @author LILIBO
 * @since 2021-06-15
 */
@Service
public class AppInfoServiceImpl implements AppInfoService {

    @Resource
    private AppInfoMapper appInfoMapper; // 引入DAO层

    /**
     * 获得分页查询总数
     *
     * @param appInfo
     * @return
     */
    @Override
    public int getTotal(AppInfo appInfo) {
        return appInfoMapper.getTotal(appInfo);
    }

    /**
     * 分页查询
     *
     * @param appInfo
     * @param page
     * @return
     */
    @Override
    public List<AppInfo> getPage(AppInfo appInfo, Page page) {
        return appInfoMapper.getPage(appInfo, page);
    }

}
